package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._03装饰模式._3穿衣;

/**
 * @ClassName Finery
 * @Description TODO
 * @Author zero
 * @DATE 2023/7/10 1:26 PM
 * @Version 1.0
 */
public abstract class Finery implements ICharacter{
    private ICharacter component;

    public void decorate(ICharacter component) {
        this.component=component;
    }

    public void show() {
        if (this.component != null){
            this.component.show();
        }
    }

}
